package com.tangyee.home_exercise_diet.beans;

import android.util.Log;

import com.tangyee.R;

import java.util.ArrayList;
import java.util.List;

public class FoodOrExerciseList {

    private static List<FoodOrExercise> foodList;
    private static List<FoodOrExercise> exerciseList;

    private static void setExerciseList() {
        exerciseList = new ArrayList<>();
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "跑步", 512, "千卡/60分钟",60, R.drawable.exercise30));
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "走路", 270, "千卡/60分钟",60, R.drawable.exercise3));
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "自行车", 391, "千卡/60分钟",60, R.drawable.exercise22));
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "爬楼梯", 364, "千卡/60分钟",60, R.drawable.exercise31));
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "跳绳", 391, "千卡/60分钟",60, R.drawable.exercise29));
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "游泳", 371, "千卡/60分钟",60, R.drawable.exercise26));
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "舞蹈", 337, "千卡/60分钟",60, R.drawable.exercise33));
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "瑜伽", 135, "千卡/60分钟",60, R.drawable.exercise16));
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "乒乓球", 202, "千卡/60分钟",60, R.drawable.exercise11));
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "篮球", 371, "千卡/60分钟",60, R.drawable.exercise20));
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "羽毛球", 303, "千卡/60分钟",60, R.drawable.exercise18));
        exerciseList.add(new FoodOrExercise(null, TypeEnum.EXERCISE, "足球", 404, "千卡/60分钟",60, R.drawable.exercise21));
    }

    public static void setFoodList(){
        foodList = new ArrayList<>();
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "苹果", 54, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "西瓜", 26, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "酸奶", 72, "千卡/100毫升",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "米饭", 116, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "蜂蜜", 321, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "鸡蛋", 144, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "番茄", 20, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "玉米", 112, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "桃子", 51, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "黄瓜", 16, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "橙子", 48, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "小白菜", 17, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "红薯", 61, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "马铃薯", 81, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "肉包子", 227, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "猕猴桃", 61, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "木瓜", 30, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "白薯", 106, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "葡萄", 45, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "冬瓜", 12, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "豆腐", 84, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "花菜", 20, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "柑桔", 51, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "菠菜", 28, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "白萝卜", 16, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "菠萝", 44, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "火龙果", 55, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "草莓", 32, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "西兰花", 36, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "芒果", 35, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "豆芽", 35, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "素炒小白菜", 46, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "香菇", 26, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "茄子", 23, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "甜瓜", 26, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "李子", 38, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "海带", 16, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "青椒", 22, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "洋葱", 40, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "面条", 110, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "金针菇", 32, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "樱桃", 46, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "薏米", 361, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "黄豆", 390, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "苦瓜", 22, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "毛豆", 131, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "豆腐脑", 15, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "丝瓜", 20, "千卡/100克",100, R.drawable.sort));
        foodList.add(new FoodOrExercise(null, TypeEnum.BREAKFAST, "豆角", 34, "千卡/100克",100, R.drawable.sort));
    }

    public static List<FoodOrExercise> getFoodList(){
        setFoodList();
        return foodList;
    }

    public static List<FoodOrExercise> getExerciseList(){
        setExerciseList();
        return exerciseList;
    }

    public static FoodOrExercise getCollected(String name, TypeEnum typeEnum, int preUnitCalorie, String unit, int amount, int img){
        return new FoodOrExercise("1111-11-11", typeEnum, name, preUnitCalorie, unit, amount, img);
    }

    public static FoodOrExercise getCollected(FoodOrExercise foodOrExercise){
        return getCollected(foodOrExercise.getName(),
                (foodOrExercise.getType().equals(TypeEnum.EXERCISE))?TypeEnum.COLLECT2:TypeEnum.COLLECT1, foodOrExercise.getPerUnitCalorie(),
                foodOrExercise.getUnit(),
                (foodOrExercise.getType().equals(TypeEnum.EXERCISE))?60:100,
                foodOrExercise.getImg());
    }

}
